<div class="row">
    <div class="col-sm-12">

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">{$title|default="主页面"}</h3>
            </div>
            <div class="panel-body">
                <form method="post" action="__URL__/add?id={$id}" role="form" id="CourseEdit" class="validate">
                    <div class="form-group">
                        <div class="row">
                            <div class="col-md-6">
                                <label for="Name" class="control-label">页面名称：</label>
                                <input type="text" id="Name" name="Name" class="form-control"
                                       data-validate="required" placeholder="请输入页面名称" data-message-required="请输入页面名称"
                                       value="{$data.name}">
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="control-label">父页面：</label>
                                    <label class="control-label form-control">{$parentName}</label>
                                    <input type="hidden" name="ParentPageID" id ="ParentPageID" value="{$pid}">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row">
                            <div class="col-md-6">
                                <label for="Url" class="control-label">URL：</label>
                                <input id="Url" name="Url" class="form-control"
                                       type="text" data-validate="required"
                                       placeholder="请输入Url" data-message-required="请输入Url" value="{$data.url}" />
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="Paramater" class="control-label">参数：</label>
                                    <input id="Paramater" name="Paramater" class="form-control"
                                           type="text" data-validate="required"
                                           placeholder="请输入确认参数" data-message-required="请输入确认参数" value="{$data.paramater}"/>

                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row col-margin">
                            <div class="col-md-12">
                                <label for="IsDisplay" class="control-label">是否显示在菜单：</label>
                                <p>
                                    <label class="radio-inline">
                                        <input type="radio" id="IsDisplay-1" name="IsDisplay" value="1"
                                        <if condition="$data.isdisplay eq 1">checked</if>
                                        >
                                        显示
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" id="IsDisplay-2" name="IsDisplay" value="0"
                                        <if condition="$data.isdisplay eq 0">checked</if>
                                        >
                                        不显示
                                    </label>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row col-margin">
                            <div class="col-md-12">
                                <label for="Description" class="control-label">描述：</label>
                                <textarea id="Description" name="Description" class="form-control" row="5">{$data.description}</textarea>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-5 col-sm-7">
                            <input type="hidden" id="ID" name="ID" value="{$id}">
                            <input type="submit" id="btnSave" value="  保 存  " class="btn btn-primary" onclick="Save()"/>
                            <input type="button" value="  返 回  " class="btn btn-info" onclick="history.go(-1)"/>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>

<script>
    $(function () {

    });
</script>
